
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import store from './store'
import {showSuccess, showError,showToast,showConfirm,navTo,speak} from "@/core/app.js"
import uView from './uni_modules/uview-ui'


// 挂载状态管理到全局
Vue.prototype.$store = store
// 挂载全局函数
Vue.prototype.$toast = showToast
Vue.prototype.$success = showSuccess
Vue.prototype.$error = showError
Vue.prototype.$confirm = showConfirm
Vue.prototype.$navTo = navTo
Vue.prototype.$speak = speak

Vue.config.productionTip = false

Vue.use(uView)	
App.mpType = 'app'

// 实例化应用
const app = new Vue({
	store,
    ...App
})
app.$mount()

export {app}
// #endif
